package com.xuecheng.content.convert;

import com.xuecheng.api.content.model.dto.TeachplanMediaDTO;
import com.xuecheng.content.entity.TeachplanMedia;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @author wuyunyun
 * @data 2021/10/14 19:26
 */
@Mapper
public interface TeachplanMediaConvert {
    TeachplanMediaConvert INSTANCE = Mappers.getMapper(TeachplanMediaConvert.class);

    @Mapping(source = "id",target = "tecahplanMediaId")
    TeachplanMediaDTO entity2dto(TeachplanMedia po);

}
